package com.woniu02;

public class Test {
    public static void main(String[] args) {
        String man="王海同";
        String a="王"+"海同";
        String b="王";
        String c="海同";
        String d=b+c;
        System.out.println(a==man);
        System.out.println((b+c)==man);
        System.out.println(d==man);
        System.out.println((b+c)==d);
    }
}
